*** Settings ***
Documentation       通过ipmi接口测试openUBMC的设备id
Resource            ../../test_function/ipmi/ipmi.robot
Library             OperatingSystem
Library             BuiltIn

Test Tags           Ipmi_Device_Id

*** Variables ***
${get_device_id}            raw 0x06 0x01
${expected_rc}              ${0}
${expected_output}          00 00 01


*** Test Cases ***
Get IPMI Device ID
    [Documentation]    带认证的IPMI设备ID测试
    [Tags]  Get_Device_Id_Via_IPMI
    ${rc}    ${output}=  Run External Ipmi Command    ${get_device_id}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=${output}
    Should Contain    ${output}    ${expected_output}


